package com.dippersoft.rick.databindtest;

import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.ObservableBoolean;
import android.databinding.ObservableField;
import android.databinding.ObservableInt;

public class TestData extends BaseObservable {
    private String strData01;
    private int intData01;
    public ObservableField<String> name = new ObservableField<>();
    public ObservableInt age = new ObservableInt();
    public ObservableBoolean isMan = new ObservableBoolean();

    public TestData() {
    }

    public TestData(String strData01, int intData01) {
        this.strData01 = strData01;
        this.intData01 = intData01;
    }

    @Bindable
    public String getStrData01() {
        return strData01;
    }

    public void setStrData01(String strData01) {
        this.strData01 = strData01;
        notifyPropertyChanged(BR.strData01);
    }

    @Bindable
    public int getIntData01() {
        return intData01;
    }

    public void setIntData01(int intData01) {
        this.intData01 = intData01;
        notifyPropertyChanged(BR.intData01);
    }
}
